cmake_minimum_required(VERSION 3.0)

project(BasicControl)

add_compile_options(-Wall -g)

#RK3566
set(CMAKE_C_COMPILER /home/lubancat/workplace/rk356x/rk356x_linux_5.10_241111/buildroot/output/rockchip_rk3566/host/bin/aarch64-buildroot-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER /home/lubancat/workplace/rk356x/rk356x_linux_5.10_241111/buildroot/output/rockchip_rk3566/host/bin/aarch64-buildroot-linux-gnu-g++)

include_directories(${PROJECT_SOURCE_DIR}/include)
set(EXECUTABLE_OUTPUT_PATH ./bin)
file(GLOB_RECURSE SRC_LIST "${CMAKE_SOURCE_DIR}/src/*.c")

message(STATUS "SRC_LIST: ${SRC_LIST}")

add_executable(${PROJECT_NAME} ${SRC_LIST})

link_directories(${CMAKE_SOURCE_DIR}/lib)

target_link_directories(${PROJECT_NAME} PRIVATE /home/lubancat/workplace/app/extra-parts/oem/normal/lib)

target_link_libraries(${PROJECT_NAME} pthread asound fdk-aac m crypto mqttpaho)
